package com.example.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * @author wangjinlong
 * @version 1.0
 * @date 2021/6/28 17:15
 */
@Data
@TableName("user")
public class User {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("username")
    private String username;

    @TableField(value = "password", select = false)
    private String password;

    @TableField(value = "nick_name", fill = FieldFill.INSERT_UPDATE)
    private String nickName;

    @TableField("sex")
    private Integer sex;

    @TableField(value = "register_date")
    private String registerDate;

    @TableLogic(value = "0", delval = "1")
    @TableField("deleted")
    private Integer deleted;

}
